package com.hymall.controller.wx;

import com.hymall.bean.common.BaseRespVo;
import com.hymall.bean.vo.WxHomeIndexVO;
import com.hymall.service.wx.WxHomeService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author: 章鹏
 * @description 小程序首页
 * @date: 2022/7/19 14:35
 */
@RestController
@RequestMapping("wx/home")
public class WxHomeController {
    @Autowired
    WxHomeService wxHomeService;

    @GetMapping("index")
    public BaseRespVo index(){
        WxHomeIndexVO homeInfo = wxHomeService.getHomeInfo();
        return BaseRespVo.ok(homeInfo);
    }
}
